{% extends 'layout.html' %}

{% block title %}
    <title>新增</title>
{% endblock %}

{% block content %}
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">新增</div>
        <!-- form表单-->
        <div style="box-sizing: border-box;padding: 20px">
            <form method="post" action="{% url 'dept_add' %}">
                {#   解决跨站防御攻击            #}
                {% csrf_token %}
                <div class="form-group">
                    <label for="dept-name">部门名称</label>
                    <input type="text" class="form-control" name="dept_name" id="dept-name"
                           placeholder="请输入部门名称">
                </div>
                <div class="form-group">
                    <label for="dept-address">部门地址</label>
                    <input type="text" class="form-control" name="dept_address" id="dept-address"
                           placeholder="请输入部门地址">
                </div>
                <button type="submit" class="btn btn-primary">提交</button>
            </form>
        </div>
    </div>

{% endblock %}